package com.tgy.algorithm.base._图_01;

import java.util.ArrayList;
import java.util.List;

public class Node<V> {
    // 节点值
    public V value;
    // 入度
    public int in;
    // 出度
    public int out;
    // 相临的节点
    public List<Node<V>> nexts;
    // 从当前节点出发的边
    public List<Edge<V>> edges;

    public Node(V value) {
        this.value = value;
        this.in = 0;
        this.out = 0;
        this.nexts = new ArrayList<>();
        this.edges = new ArrayList<>();
    }
}
